Optimal. Leaf size=49 \[ -\frac {2}{x}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{x}-\frac {\text {sech}^{-1}(a x)^2}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {6420, 3377,
2718} \begin {gather*} -\frac {\text {sech}^{-1}(a x)^2}{x}+\frac {2 \sqrt {\frac {1-a x}{a x+1}} (a x+1) \text {sech}^{-1}(a x)}{x}-\frac {2}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 6420
Rubi steps
\begin {align*} \int \frac {\text {sech}^{-1}(a x)^2}{x^2} \, dx &=-\left (a \text {Subst}\left (\int x^2 \sinh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\right )\\ &=-\frac {\text {sech}^{-1}(a x)^2}{x}+(2 a) \text {Subst}\left (\int x \cosh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\\ &=\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{x}-\frac {\text {sech}^{-1}(a x)^2}{x}-(2 a) \text {Subst}\left (\int \sinh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\\ &=-\frac {2}{x}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{x}-\frac {\text {sech}^{-1}(a x)^2}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 42, normalized size = 0.86 \begin {gather*} -\frac {2-2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)+\text {sech}^{-1}(a x)^2}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 61, normalized size = 1.24
method | result | size |
derivativedivides | \(a \left (-\frac {\mathrm {arcsech}\left (a x \right )^{2}}{a x}+2 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}-\frac {2}{a x}\right )\) | \(61\) |
default | \(a \left (-\frac {\mathrm {arcsech}\left (a x \right )^{2}}{a x}+2 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}-\frac {2}{a x}\right )\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 35, normalized size = 0.71 \begin {gather*} 2 \, a \sqrt {\frac {1}{a^{2} x^{2}} - 1} \operatorname {arsech}\left (a x\right ) - \frac {\operatorname {arsech}\left (a x\right )^{2}}{x} - \frac {2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 97 vs.
\(2 (47) = 94\).
time = 0.34, size = 97, normalized size = 1.98 \begin {gather*} \frac {2 \, a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right ) - \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right )^{2} - 2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {asech}^{2}{\left (a x \right )}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\mathrm {acosh}\left (\frac {1}{a\,x}\right )}^2}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________